package cn.graydove.bot.repository;

import cn.graydove.bot.model.entity.Advance;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

public interface AdvanceRepository extends JpaRepository<Advance, Integer> {

    Advance findByGroupNumber(Long number);

    @Modifying
    @Query("update Advance a set a.requestImageNumber=0")
    void clearImg();
}
